<?php

global $CFG;
require_once($CFG->dirroot.'/question/type/cppexpression/array2d_analyzers.php');


$row = $_POST["row"];
$col = $_POST["col"];

$N = (int)$row;
$M = (int)$col;

$expression1 = $_POST["expression1"];
$expression2 = $_POST["expression2"];

qtype_cppexpression_array2d_simple_hint($expression1, $N, $M);

echo "<br><br>";

qtype_cppexpression_array2d_complex_hint($expression1, $expression2, $N, $M);

echo "<br><br>";

qtype_cppexpression_array2d_grade($expression1, $expression2, $N, $M);

?>